#!/bin/echo Warning: this library should be sourced!
#
# Functions for input & output

# err - print the error message to stderr
err() {
  echo "[$(date +'%Y%m%dT%H:%M:%S%z')][Error]: $@" >&2
}

# dia - print the error message to stderr and exit with the $1 as the exit code
dia() {
  local retCode=$1
  shift
  echo "[$(date +'%Y%m%dT%H:%M:%S%z')][Error]: $@" >&2
  exit ${retCode}
}

